import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

const routes = [
	{
		path: '/',
		name: 'Home',
		component: () => import('@/views/Home'),
	},
	{
		path: '/Home',
		name: 'Home',
		component: () => import('@/views/Home'),
	},
	{
		path: '/pageView/:id',
		name: 'pageView',
		component: () => import('@/views/pageView.vue'),
	},
	{
		path: '/demo',
		name: 'demo',
		component: () => import('@/views/demo.vue'),
	},
	{
		path: '/map',
		name: 'demo',
		component: () => import('@/views/map.vue'),
	},
	{
		path: '/swiper',
		name: 'demo',
		component: () => import('@/views/swiper.vue'),
	},
];

export default new Router({
	mode: 'history',
	base: process.env.BASE_URL,
	routes,
});
